package cn.hu.swingDemo;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class HelloWorld {
	private static void createAndShowGUI(){
		JFrame.setDefaultLookAndFeelDecorated(false);
		
		JFrame frame = new JFrame("Hello world Swing");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JLabel label = new JLabel("Hello World");
		frame.getContentPane().add(label);
		
		frame.setSize(200, 120);
		frame.setLocationRelativeTo(null);
		frame.setVisible(true);
	}
		public static void main(String[] args) {
			createAndShowGUI();
		}

}
